package com.material_demo.sys.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 王拥江
 * @contact  15295374151
 * Swagger-openapi配置类
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI springOpenAPI() {

        return new OpenAPI().info(new Info()
                .title("SpringDoc API")
                .description("SpringDoc Simple Application")
                .version("0.0.1"));
    }
}